import Vue from 'vue'
import VueRouter from 'vue-router'

// 使用路由中间件
Vue.use(VueRouter)

// 定义路由规则
const routes = [{
		path: '/',
		component: () => import('@/components/index/index')
	},
	{
		path: '/message',
		component: () => import('@/components/message/message')
	},
]

const router = new VueRouter({
	mode: 'history',
	routes
})

export default router
